package com.aliwo.design.patterns.singleton;

/**
 * @author xuyayuan
 * @description TODO
 * @date 2021/8/26 11:53
 */
public class Child extends Parent{
    static {
        System.out.println("Child static initial block");
    }

    {
        System.out.println("Child initial block");
    }

    private Hobby hobby = new Hobby();

    public Child() {
        System.out.println("Child constructor block");
    }
}
